package com.waimai.mobile.api.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userName;
	private String phone;
	private String password;
	private Float balance;

	private String passwordOld;

	// Constructors

	/** default constructor */
	public User() {
	}

	public User(String phone) {
		this.phone = phone;
	}

	/** minimal constructor */
	public User(String userName, String phone, String password) {
		this.userName = userName;
		this.phone = phone;
		this.password = password;
	}


	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Float getBalance() {
		return this.balance;
	}

	public void setBalance(Float balance) {
		this.balance = balance;
	}

	public void setPasswordOld(String passwordOld){this.passwordOld = passwordOld;}

	public String getPasswordOld(){return this.passwordOld;}

	@Override
	public String toString() {
		return "User{" +
				"userId=" + userId +
				", userName='" + userName + '\'' +
				", phone='" + phone + '\'' +
				", password='" + password + '\'' +
				", balance=" + balance +
				", passwordOld='" + passwordOld + '\'' +
				'}';
	}
}